package com.library.rest.rxjava;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-07-01 21:18
 * @version: 9.1.0
 */
public class ServerException extends Exception{
    public int code;
    public String message;

    public ServerException(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return code+"-"+message;
    }

}
